package com.example.waterdispenserm2.inter;

import com.example.waterdispenserm2.vmc.DataParser;

public class M2InterfaceUtil {
    private static M2Interface mM2Interface;

    public static void setM2Interface(M2Interface m2Interface) {
        mM2Interface = m2Interface;
    }


    public static void doCallBackUpdateUI(DataParser.DeviceData data){
        if (mM2Interface!=null) {
            mM2Interface.updateUI(data);
        }
    }
}
